package com.seckill.order.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.seckill.goods.pojo.Sku;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;
/**
 * <p>
 * 
 * </p>
 * @author 作者
 * @since 2022-03-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_order")
////@ApiModel(value="Order", description="")
public class Order implements Serializable {


    ////@ApiModelProperty(value = "订单id")
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    private String id;

    ////@ApiModelProperty(value = "数量合计")
    @TableField("total_num")
    private Integer totalNum;

    ////@ApiModelProperty(value = "支付类型，1、在线支付、0 货到付款")
    @TableField("pay_type")
    private String payType;

    ////@ApiModelProperty(value = "订单创建时间")
    @TableField("create_time")
    private Date createTime;

    ////@ApiModelProperty(value = "订单更新时间")
    @TableField("update_time")
    private Date updateTime;

    ////@ApiModelProperty(value = "付款时间")
    @TableField("pay_time")
    private Date payTime;

    ////@ApiModelProperty(value = "发货时间")
    @TableField("consign_time")
    private Date consignTime;

    ////@ApiModelProperty(value = "交易完成时间")
    @TableField("end_time")
    private Date endTime;

    ////@ApiModelProperty(value = "交易关闭时间")
    @TableField("close_time")
    private Date closeTime;

    ////@ApiModelProperty(value = "收货人")
    @TableField("receiver_contact")
    private String receiverContact;

    ////@ApiModelProperty(value = "收货人手机")
    @TableField("receiver_mobile")
    private String receiverMobile;

    ////@ApiModelProperty(value = "收货人地址")
    @TableField("receiver_address")
    private String receiverAddress;

    ////@ApiModelProperty(value = "交易流水号")
    @TableField("transaction_id")
    private String transactionId;

    ////@ApiModelProperty(value = "订单状态,0:未完成,1:已完成，2：已退货")
    @TableField("order_status")
    private String orderStatus;

    ////@ApiModelProperty(value = "支付状态,0:未支付，1：已支付，2：支付失败")
    @TableField("pay_status")
    private String payStatus;

    ////@ApiModelProperty(value = "发货状态,0:未发货，1：已发货，2：已收货")
    @TableField("consign_status")
    private String consignStatus;

    ////@ApiModelProperty(value = "是否删除")
    @TableField("is_delete")
    private String isDelete;

    @TableField("sku_id")
    private String skuId;

    @TableField("name")
    private String name;

    @TableField("price")
    private Integer price;

    @TableField("cat_id")
    private Integer catId;

    @TableField("username")
    private String username;

    //商品
    @TableField(exist = false)
    private Sku sku;
}
